<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'editable-part-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'type'); ?>
		<?php echo $form->textField($model,'type',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'type'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'htmlText'); ?>
		<?php //echo $form->textArea($model,'htmlText',array('size' => 60, 'maxlength' => 21844)); ?>
                <?php 
                //var_dump(Yii::app()->basePath.'/../ckeditor/ckeditor.php');
                $this->widget('application.extensions.TheCKEditor.theCKEditorWidget',array(
                    'model'=>$model,				# Data-Model (form model)
                    'attribute'=>'htmlText',			# Attribute in the Data-Model
                    'height'=>'400px',
                    'width'=>'100%',
                    'toolbarSet'=>'Full', 			# EXISTING(!) Toolbar (see: ckeditor.js)
                    'ckeditor'=>Yii::app()->basePath.'/../ckeditor/ckeditor.php',
                                                                                    # Path to ckeditor.php
                    'ckBasePath'=>Yii::app()->baseUrl.'/ckeditor/',
                                                                                    # Relative Path to the Editor (from Web-Root)
                    //'css' => Yii::app()->baseUrl.'/css/index.css',
                                                                            # Additional Parameters
                ) ); ?>
		<?php echo $form->error($model,'htmlText'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->